<%--
  Created by IntelliJ IDEA.
  User: liangliang
  Date: 2018/6/25
  Time: 18:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>POJO</title>
</head>
<body>
<h1>POJO</h1>
<ul>
    <li>Spring MVC 会按请求参数名和 POJO 属性名进行自动匹配，自动为该对象填充属性值。支持级联属性。 如：dept.deptId、dept.address.tel 等
    </li>
</ul>
<form action="/springmvc/requestPojo" method="post">
    <span>用户名：</span><input type="text" name="username" value="admin">
    <span>年龄：</span><input type="number" name="age" value="18">
    <span>地址：</span><input type="text" name="address.city" value="beijing">
    <input value="提交" type="submit">
</form>
</body>
</html>
